package com.example.demo.service;


import com.example.demo.entity.Book;
import com.example.demo.entity.Borrow;
import com.example.demo.entity.PopularBook;

import java.util.List;

public interface BookService {
    List<Book> findAllBooks();

    Boolean borrowBookById(String bookid, String username);

    List<Borrow> findAllBooksBorrowed(String username);

    Boolean returnBook(String bookid, String username);

    List<PopularBook> findAllPopularBooks(Integer popularNum);

    List<Book> getBooksByKeyword(Book book, String keyword);

    void checkBookExpireStatus(List<Borrow> list);
}
